cmake_minimum_required(VERSION 3.15)

project(SpaceTouch)

if(WIN32)
    add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/source-charset:utf-8>")
    add_compile_options("$<$<C_COMPILER_ID:MSVC>:/source-charset:utf-8>")
endif()

set(CMAKE_CXX_STANDARD 17)

set(build_source
"./space-touch/Kernel/KeyboardHandle.cpp"
"./space-touch/Kernel/MouseHandle.cpp"
"./space-touch/Kernel/TS.cpp"
"./space-touch/Kernel/WE.cpp"
"./space-touch/Core.cpp"
"./app.rc"
)

set(${PROJECT_BINARY_DIR} "./bin")

include_directories("space-touch")

#add_executable(jump ${build_source} ${build_header} "./jump.cpp")
#add_executable(jump_shake ${build_source} ${build_header} "./jump_shake.cpp")
#add_executable(jump_shake_ts ${build_source} ${build_header} "./jump_shake_ts.cpp")
#add_executable(jump_ts ${build_source} ${build_header} "./jump_ts.cpp")
#add_executable(shake ${build_source} ${build_header} "./shake.cpp")
#add_executable(TS ${build_source} "./ts.cpp")
#install(TARGETS TS)

add_executable(TSWE ${build_source} "./ts_we.cpp")
#install(TARGETS TSWE)

#add_executable(shake_ts ${build_source} ${build_header} "./shake_ts.cpp")